<%@ page language="java" pageEncoding="UTF-8"%><%@ page import="com.wap.framework.util.Constants;"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath+"admin" + "/"%>">
		<title>广告点击数查询</title>
		<link rel="stylesheet" type="text/css" href="skin/css/base.css">
		<script language="javascript" type="text/javascript" src="skin/js/frame/dynamic_page.js"></script>
		
		<script language="javascript" type="text/javascript" src="js/calendar.js"></script>
		
	</head>

	<body leftmargin="8" topmargin="8" background='skin/images/allbg.gif'>
		<!--  图片列表   -->
		
			<input type="hidden" name="action_method" value="delete">
			<table width="98%" border="0" cellpadding="2" cellspacing="1"
				bgcolor="#D1DDAA" align="center" style="margin-top: 8px">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="10" background="skin/images/tbg.gif">
						广告点击数查询&nbsp;
						<form name="search" method="get" action="pvcounterMgr.do">
						 按日期查询：<input type="text" name="date"  value="${dateStr}" onclick="new Calendar(2010, 2030, 0 ,'yyyy-MM-dd').show(this);"  readonly="readonly" />
						 <input type="hidden"  name="action_method" value="listByDate" />
						 <input type="hidden"  name="mode" value="${mode}" />
						 <input type="submit" value="点击查询" />注意：日期格式为：YYYY-MM-DD
						</form>	
					</td>
				</tr>
				<tr align="center" bgcolor="#FAFAF1" height="22">
					
					<td width="4%">
						ID
					</td>					
					
					<td width="20%">
						广告名称【id】
					</td>
					
					<td width="20%">
						投放页面【id】【位置】
					</td>
					
					<td width="10%">
						点击个数
					</td>
					<td width="8%">
						开始统计时间
					</td>
					<td width="8%">
						保存数据时间
					</td>									
					
				</tr>
				<c:forEach items="${pvcounters}" var="pvcounterColl">
					<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='#FCFDEE';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					
					<td>
						${pvcounterColl.id}
					</td>					
					
					<td align="left">
						${pvcounterColl.adTitle}【${pvcounterColl.adId}】
					</td>
					
					<td align="left">
						${pvcounterColl.pageTitle}【${pvcounterColl.pageId}】【${pvcounterColl.layOut}】
					</td>
					
					<td >
						 ${pvcounterColl.pv}
					</td>
					<td>
						<fmt:formatDate value="${pvcounterColl.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
					<td>
						<fmt:formatDate value="${pvcounterColl.lastTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>										
					
				</tr>
				</c:forEach>			
				
				<tr bgcolor="#FAFAF1">
					<td height="28" colspan="10">
						&nbsp;						
						<!--  input class="coolbg" type="button" value="更新PV数据" onclick="alert('没跟新')"/ -->
								
					</td>
				</tr>
								
				<tr align="right" bgcolor="#EEF4EA">
					<td height="25" colspan="10" align="center">
					
					</td>
				</tr>
			</table>
			
	</body>
</html>
